package com.flyme.module.base.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.flyme.common.core.model.base.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author: zyf
 * @date: 2019/1/5 23:58
 * @desc: 网关流量限制
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@TableName("sys_gateway_rate_limit")
public class SystemGatewayRateLimit extends AbstractEntity {

    /**
     * 限制数量
     */
    private Long limit;

    /**
     * 时间间隔(秒)
     */
    private Long interval;


    private String serviceId;

    /**
     * 状态:0-无效 1-有效
     */
    private Integer status;

    /**
     * 限流规则内容
     */
    private String type;

    private String rules;
    /**
     * 限流描述
     */
    private String limitDesc;

}
